The Accordion Pane Component > FAccordionPane.setEnabled() |
FAccordionPane.setEnabled()
Availability
Flash Player 6.
Usage
myAccordion_acp.setEnabled (enabled)
Parameters
enabled A Boolean value specifying whether the component is
enabled (true) or disabled (false).
Returns
Nothing
Description
Specifies whether the component is enabled (true) or disabled (false). If the component is disabled, it will not accept mouse or keyboard interaction from the user. The component will also be grayed-out to visually indicate its state to the user.
Example
The accordion_addListener.fla example file contains an example of using this method.
The following code disabled the component, and then traces its state.
myAccordionPane_acp.setEnabled(false);
trace("Enabled: "+myAccordionPane_acp.getEnabled()) // traces "Enabled: false"
See also